package com.recipedb.recipedb.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@Entity
@Table(name = "user_follow")
@IdClass(UserFollowId.class)
public class UserFollow {
    @Id private Long followerId;
    @Id private Long followeeId;
    @Column(nullable = false)
    private LocalDateTime createdAt = LocalDateTime.now();
}